/* eslint-disable */
export function mainFunc() {
  /*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
  const c = 'Translate',
    e = this || self

  function f(a, m) {
    a = a.split('.')
    let b = e
    a[0] in b || 'undefined' == typeof b.execScript || b.execScript('var ' + a[0])
    for (var d; a.length && (d = a.shift()); )
      a.length || void 0 === m
        ? b[d] && b[d] !== Object.prototype[d]
          ? (b = b[d])
          : (b = b[d] = {})
        : (b[d] = m)
  }

  const g = /^[\w+/_-]+[=]{0,2}$/,
    h = null

  function k(a) {
    return (a = a.querySelector && a.querySelector('script[nonce]')) &&
      (a = a.nonce || a.getAttribute('nonce')) &&
      g.test(a)
      ? a
      : ''
  }

  function l(a) {
    return a
  }
  const n = {
    0: c,
    1: 'Cancel',
    2: 'Close',
    3(a) {
      return 'Google has automatically translated this page to: ' + a
    },
    4(a) {
      return 'Translated to: ' + a
    },
    5: 'Error: The server could not complete your request. Try again later.',
    6: 'Learn more',
    7(a) {
      return 'Powered by ' + a
    },
    8: c,
    9: 'Translation in progress',
    10(a) {
      return 'Translate this page to: ' + (a + ' using Google Translate?')
    },
    11(a) {
      return 'View this page in: ' + a
    },
    12: 'Show original',
    13: 'The content of this local file will be sent to Google for translation using a secure connection.',
    14: 'The content of this secure page will be sent to Google for translation using a secure connection.',
    15: 'The content of this intranet page will be sent to Google for translation using a secure connection.',
    16: 'Select Language',
    17(a) {
      return 'Turn off ' + (a + ' translation')
    },
    18(a) {
      return 'Turn off for: ' + a
    },
    19: 'Always hide',
    20: 'Original text:',
    21: 'Contribute a better translation',
    22: 'Contribute',
    23: 'Translate all',
    24: 'Restore all',
    25: 'Cancel all',
    26: 'Translate sections to my language',
    27(a) {
      return 'Translate everything to ' + a
    },
    28: 'Show original languages',
    29: 'Options',
    30: 'Turn off translation for this site',
    31: null,
    32: 'Show alternative translations',
    33: 'Click on words above to get alternative translations',
    34: 'Use',
    35: 'Drag with shift key to reorder',
    36: 'Click for alternative translations',
    37: 'Hold down the shift key, click, and drag the words above to reorder.',
    38: 'Thank you for contributing your translation suggestion to Google Translate.',
    39: 'Manage translation for this site',
    40: 'Click a word for alternative translations, or double-click to edit directly',
    41: 'Original text',
    42: c,
    43: c,
    44: 'Your correction has been submitted.',
    45: 'Error: The language of the webpage is not supported.',
    46: 'Language Translate Widget'
  }
  let p

  function q(a, m) {
    this.a = m === r ? a : ''
  }

  var r = {}
  const t = window.google && google.translate && google.translate._const
  if (t) {
    let u
    a: {
      for (var v = [], w = [''], x = 0; x < w.length; ++x) {
        const y = w[x].split(','),
          z = y[0]
        if (z) {
          const A = Number(y[1])
          if (!(!A || 0.1 < A || 0 > A)) {
            const B = Number(y[2]),
              C = new Date(),
              D = 1e4 * C.getFullYear() + 100 * (C.getMonth() + 1) + C.getDate()
            !B || B < D || v.push({ version: z, ratio: A, b: B })
          }
        }
      }
      let E = 0,
        F = window.location.href.match(/google\.translate\.element\.random=([\d\.]+)/),
        G = Number(F && F[1]) || Math.random()
      for (x = 0; x < v.length; ++x) {
        const H = v[x]
        E += H.ratio
        if (1 <= E) break
        if (G < E) {
          u = H.version
          break a
        }
      }
      u = 'TE_20201130_00'
    }
    f('google.translate.m', n)
    f('google.translate.v', u)
  }
}
